package com.job.yangshida.homework11and12.homework0711;

/**
 * @author 杨士达
 * @version 1.0
 * @since 2022-07-12 11:40:15
 */
public class TestPremier {
    public static void main(String[] args) {
        Premier1 p1=Premier1.getInstance();
        Premier1 p2=Premier1.getInstance();
        Premier1 p3=Premier1.getInstance();
        System.out.println(p1==p2&&p3==p1);//比地址
        p1.setName("安倍");
        System.out.println(p2.getName());
    }
}
